package com.sprucetec.live.constants;

import java.util.Arrays;
import java.util.List;

/**
 * @ClassName SprucetecConstant
 * @Description: 直播基础常量
 * @Author Kenny
 * @Date 2020/3/26
 **/
public class SprucetecConstant {

    public static final String SESSION_USER_ID = "userId";
    public static final String SESSION_USER_CODE = "userCode";
    public static final String SESSION_USER_NAME = "userName";
    public static final String SESSION_AUTH_ID = "authId";
    public static final String SESSION_USER_TOKEN = "userToken";

    public static class OpCode {
        /**
         * 无权限访问
         */
        public static final int SSO_NO_PERMISSION = 1211;
        /**
         * SSO调用异常
         */
        public static final int SSO_CALL_ERROR = 1210;
        /**
         * 未登陆
         */
        public static final int SSO_NOT_LOGIN = 1212;

        /**
         * platform  自定义详情页重定向未登录码
         */
        public static final int PLATFORM_SSO_NOT_LOGIN = 1213;

        /**
         * 内部错误
         */
        public static final int INTERNAL_ERROR = 500;
    }

    public static final Integer PAGE_INDEX = 1;

    public static final Integer PAGE_SIZE = 10;

    /**
     * 无效的数据状态
     */
    public static final Integer DISABLE_STATUS = -1;

    /**
     * 否
     */
    public static final Integer NO = 0;

    /**
     * 是
     */
    public static final Integer YES = 1;

    /**
     * 分割字符串
     */
    public static final String splitStr = ",";

    /**
     * 添加字符串
     */
    public static final String addStr = ",,,";

    /**
     * dubbo 当前登录用户工号
     */
    public final static String DUBBO_LOGIN_USER_CODE = "currentLoginUserCode";

    /**
     * dubbo 当前登录用户名称
     */
    public final static String DUBBO_LOGIN_USER_NAME = "currentLoginUserName";

    /**
     * dubbo 当前登录用户邮箱
     */
    public final static String DUBBO_LOGIN_USER_EMAIL = "currentLoginUserEmail";

    /**
     * dubbo 当前登录用户邮箱前缀
     */
    public final static String DUBBO_LOGIN_USER_EMAIL_PREFIX = "currentLoginUserEmailPrefix";

    /**
     * dubbo 当前登录用户角色
     */
    public final static String DUBBO_LOGIN_USER_ROLE = "currentLoginUserRoleCode";


    public final static List consumerCity = Arrays.asList(new String[]{"湖北省武汉市", "四川省成都市", "CHINA"});



    /*审批 枚举key*/


    public static class OasKey {

        public static final String appkey = "appkey";

        public static final String processWebFormId = "processWebFormId";
        public static final String data = "data";

        public static final String approvalData = "approvalData";
        public static final String approvalCreater = "approvalCreater";
        public static final String approvalName = "approvalName";

        public static final String subFormData = "subFormData";
    }


}
